package com.examples {
	import flash.display.Sprite;

	/**
	 * @author blake
	 */
	public class HelloMultiple extends Sprite {
		public function HelloMultiple() {
			countNumbers();
		}

		private function countNumbers() : void {
			// for (var i : int = 1; i <= 100; i++) {
			// trace(i % 3, "Hello");
			// }
			for (var i : int = 1; i <= 100; i++) {
				var out : String = "";

				if (i % 3 == 0) out = "Hello";
				if (i % 5 == 0) out += "World";
				if (out == "") out = String(i);

				trace(out);
			}
		}
	}
}
